"""
-------------------------------
- File_Name: student.py
- Date: 2025/2/12
- Author: yangzhide
- Email: xxzjyzd@126.com
- Description:
-------------------------------
"""

from fastapi import APIRouter,Path

from app.models.student import Student

router = APIRouter()
prefix ="/student"
tags = ["学生信息"]
description = "学生信息相关接口"


# @router.post("/student",summary="新增学生信息")
# async def post_student(student: Student)->dict:
#     return {"message": f"添加一个学生【{student}】"}
#
@router.delete("/student/{id}/", summary="删除学生信息")
async def delete_student(s_id: str = Path(description="学生ID", alias='id'))->dict:
    return {"message": f"删除id={s_id}的学生信息"}
#
# @router.put("/student/{id}", summary="更新某一学生信息")
# async def put_student(student: Student)->dict:
#     return {"message": f"更新id={id}的学生信息"}

@router.get("/student", summary="查询所有学生信息")
async def get_student()->dict:
    return {"message": "获取所有学生"}

@router.get("/student/{id}", summary="查询某一学生信息")
async def get_student()->dict:
    return {"message": f"获取id={id}的学生"}